package com.dingup.paike.dao;

import com.dingup.paike.mappers.BaseMapper;
import com.dingup.paike.model.pk.PkLessonStudentSign;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface PkLessonStudentSignMapper extends BaseMapper<PkLessonStudentSign> {

    List<PkLessonStudentSign> getByPkLessonId(Integer pkLessonId);

    PkLessonStudentSign getByPkLessonIdAndStudentId(@Param("pkLessonId") Integer pkLessonId, @Param("studentId") String studentId);

    List<PkLessonStudentSign> getBetween(@Param("before") Date before, @Param("after") Date after);

    List<PkLessonStudentSign> getCurrentDateSign(@Param("currentDate") Date currentDate,
                                                 @Param("before") Date before,
                                                 @Param("after") Date after);
}